body { margin: 0; background: #f8f8f8; font-family: Arial, sans-serif; overflow: hidden; }
#toolbar { padding: 10px; background: #fff; box-shadow: 0 2px 4px #0001; display: flex; align-items: center; gap: 12px; position: fixed; top: 0; left: 0; width: 100vw; z-index: 100; }
canvas { display: block; position: absolute; left: 0; top: 50px; width: 100vw; height: calc(100vh - 50px); background: #fff; border: none; box-shadow: 0 2px 8px #0001; }
/* Button styles to match home.html/styles.css */
.button {
  display: flex;
  min-width: 80px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  height: 32px;
  padding: 0 12px;
  background-color: #f2f2f2;
  color: #141414;
  font-size: 13px;
  font-weight: bold;
  border: none;
  transition: background-color 0.2s;
}
.button:hover {
  background-color: #e0e0e0;
}
.button.primary-button {
  background-color: #141414;
  color: white;
  border: none;
}
.button.primary-button:hover {
  background-color: #303030;
}
.draggable-text {
  position: absolute;
  min-width: 40px;
  min-height: 24px;
  background: #fff;
  border: 1.5px solid #bbb;
  border-radius: 6px;
  box-shadow: 0 2px 8px #0002;
  padding: 6px 12px;
  cursor: move;
  z-index: 10;
  user-select: text;
  outline: none;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 70px);
  overflow: auto;
  word-break: break-word;
}
.draggable-text:focus {
  border: 2px solid #0078ff;
  box-shadow: 0 0 0 2px #0078ff33;
  z-index: 20;
} 
/* 通知提示样式 */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  max-width: 400px;
  border: 1px solid #e0e0e0;
}
.notification.success {
  border-left: 4px solid #137333;
}
.notification.success::before {
  content: '';
  width: 14px;
  height: 14px;
  background-color: #e6f4ea;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
}
.notification.success::after {
  content: '✓';
  position: absolute;
  left: 20px;
  font-size: 10px;
  color: #137333;
  font-weight: bold;
}
.notification-message {
  color: #141414;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  padding-left: 8px;
}
.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@keyframes notification-hide {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}
/* 确认弹窗样式 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.confirm-modal {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 16px;
  width: 100%;
  max-width: 300px;
  animation: modal-pop 0.25s ease-out;
}
@keyframes modal-pop {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.confirm-header {
  margin-bottom: 12px;
  text-align: left;
}
.confirm-title {
  font-size: 16px;
  font-weight: 600;
  color: #141414;
  margin: 0;
}
.confirm-body {
  margin-bottom: 16px;
  text-align: left;
}
#confirm-message {
  font-size: 13px;
  color: #757575;
  margin: 0;
  line-height: 1.4;
}
.confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.confirm-footer .modal-button {
  min-width: 60px;
  height: 30px;
  font-size: 12px;
  font-weight: 500;
  padding: 0 12px;
  border-radius: 15px;
}
.modal-button {
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  background-color: #f2f2f2;
  color: #141414;
  transition: background-color 0.2s, border-color 0.2s;
}
.modal-button:hover {
  background-color: #e0e0e0;
  border-color: #bbbbbb;
}
.primary-button {
  background-color: #141414;
  color: white;
  border: 1px solid #141414;
  cursor: pointer;
}
.primary-button:hover {
  background-color: #303030;
  border-color: #303030;
}
.secondary-button {
  background-color: #f2f2f2;
  color: #141414;
  border: 1px solid #e0e0e0;
  cursor: pointer;
}
.secondary-button:hover {
  background-color: #e0e0e0;
  border-color: #bbbbbb;
}
.danger-button {
  background-color: #d93025;
  color: white;
  border: 1px solid #d93025;
  cursor: pointer;
}
.danger-button:hover {
  background-color: #c5221f;
  border-color: #c5221f;
} 